<script setup lang="ts">
import { onMounted } from "vue";
import { useUserStore } from "../../store/modules/user";
import { theDate } from "@/utils/date"
let userStore = useUserStore();
onMounted(() =>
    userStore.userInfo()
)
</script>

<template>
    <el-card>
        <div class="box">
            <img :src="userStore.avatar" class="avater">

            <div style="margin-left: 20px;">
                <h3>{{ theDate() }},{{ userStore.userName }}</h3>
                <h4>硅谷甄选运营平台</h4>
            </div>
        </div>
    </el-card>
    <div class="box2">
        <svg-icon name="welcome" width="600px" height="500px"></svg-icon>
    </div>
    
</template>


<style scoped lang="scss">
.box{
    display: flex;
    .avater{
        width: 100px;
        height: 100px;
        border-radius: 50%;
    }
    h3{
        font-weight: 900;
        font-size: 30px;
        margin-bottom: 40px;
    }
    h4{
        font-style: italic;
        color: skyblue;
    }
}
.box2{
    display:flex;
    justify-content: center;
}
</style>